import java.io.DataOutputStream;
import java.io.IOException;


public class TCPMessage/* implements Runnable*/{
	private DataOutputStream outputStream;
	private String message;
	/**
	 * Creates a TCPMessage that will be sent in a Thread.
	 * @param outputStream
	 * @param message
	 */
	public TCPMessage(DataOutputStream outputStream, String message){
		this.outputStream = outputStream;
		this.message = message;
		
		try {
			outputStream.writeBytes(message + "\n");
			outputStream.flush();
		} catch (IOException e) {}
	}

	/*@Override
	public void run(){
		try {
			outputStream.writeBytes(message + "\n");
			outputStream.flush();
			System.out.println("SENT: "+message);
		} catch (IOException e) {}
	}*/
}
